package com.dinglit.thread1 ;

/**
 * @email  740970978@qq.com
 * @author liuhuanchao
 * @since  2017-09-10
 *
 */
public class Thread1  extends Thread{
    
	private String name;
	
	public Thread1(String name){
		this.name = name;
	}
	
	public void run(){
		for(int i =1;i<=5; i++){
			System.out.println(name+"运行 : "+i);
			try {
				sleep((int)Math.random()*10);
			} catch (InterruptedException e) {
				System.out.println(e);
				e.printStackTrace();
			}
		}
	}
}
